import cv2
import numpy as np

img = cv2.imread('img/example.png')

gray_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
print(gray_img.shape)

cv2.imshow('', gray_img)
cv2.waitKey(0)